/**
 * 
 * 学术动态列表页
 * 
 * */
import React, { useState, useCallback,useEffect } from 'react';
import Header from '@/component/layout/Header/Header';
import ListTitle from "@/component/layout/ListTitle/ListTitle";
import List from './List';
import './style.less';
import { Link } from 'react-router-dom';
import { configwx } from '@/util/share'

const img1 = <img alt="" className="fabuhuiyi" src={require('../../assests/img/fabuhuiyi.png')} />

const Academic = (props) => {

  const [param, setParam] = useState({ pageIndex: 1, pageSize: 20 })

  const update = useCallback(() => {
    setParam({ ...param, pageIndex: param.pageIndex + 1 })

  }, [param])
  useEffect(()=>{
    configwx(
      '豪森药业', '学术动态'
    )
  })
  return <>
    <Header
      center={<span>学术动态</span>}
    />
    <div className="Academic-box global-content">
      <ListTitle img={img1} text={<Link to="/publish">发布新的会议</Link>} />
      <div className="Academic-content">
        <List param={param} update={update} />
      </div>
    </div>
  </>
}


export default React.memo(Academic);